package org.csu.mybigpro.DTO;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true) // 忽略未知属性
public class AiAssistantRequestDto {

    private List<ChatMessageDto> messages;

    public List<ChatMessageDto> getMessages() {
        return messages;
    }

    public void setMessages(List<ChatMessageDto> messages) {
        this.messages = messages;
    }

    // 内部类，代表单条聊天消息
    public static class ChatMessageDto {
        private String from; // 'user' 或 'ai'
        private String content;

        public String getFrom() { return from; }
        public void setFrom(String from) { this.from = from; }
        public String getContent() { return content; }
        public void setContent(String content) { this.content = content; }
    }
}